<template name="channel_chatroom_list_item">
  <div class="chat-list{{#if isCurrent}} chat-list-right{{/if}}">
    {{#unless isCurrent}}
    <a href="/u/{{username}}" class="userimg go-homepage">
      <img class="rounded-circle" src="{{avatar}}">
    </a>
    <!-- d-none -->
    {{/unless}}
    <div class="chat{{#unless showTime}} chat-before{{/unless}}{{#if result.details.isHTML}} bg-white text-dark mw-100 p-0{{/if}}">
      {{{result.details.text}}}
    </div>
    <!-- chat-before -->
    {{#if isCurrent}}
    <button type="button" class="chat-btn delete-channel-chatroom-message">
      <i class="material-icons">delete</i>
    </button>
    {{/if}}
  </div>
  {{#if showTime}}
  <div class="chat-time{{#if isCurrent}} justify-content-end{{/if}} text-secondary">
    {{chatMoment time}}
    <i class="material-icons text-success ml-1">check</i>
  </div>
  {{/if}}
</template>